package com.hlingsoft.cms.entity;

import com.hlingsoft.cms.constant.OrderInfoConstant;

import java.util.Date;

/**
 * Created by selbylei on 2015/5/5.
 */
public class OrderInfo {
    private long id;
    private String  orderId;      //订单号
    private long tagsId;
    private long appUserId;
    private long goodsId;
    private String name;
    private int goodsCount;
    private String goodsSize;
    private Double goodsPrice; //单价
    private String goodImage;
    private long consigneeId;
    private String consigneeTime;
    private long couponId;
    private String otherReq;
    private int status;           // 1.等待支付 2.已支付 3.等待发货
    private Double goodsTotalPrice;    //商品总价
    private Double shippingPrice;  //配送费
    private int shippingType;   //配送方式
    private Double couponPrice;    //代金券费用
    private Double payPrice;      //总费用
    private Date  createTime;     //下单时间
    private Date  updateTime;     //更新时间
    private Date  payTime;        //支付时间
    private Date checkTime;       //订单处理时间
    private Date  shippingTime;       //发货时间
    private Date  endTime;        //订单完成时间
    private int payType;          //10.货到付款 11.支付宝
    private int authorization;    //订单是否被取消
    private String orderName;     //下单人
    private String orderPhone;    //下单人联系电话
    private String consigneeName; //收货人名字
    private String consigneeAddress; //收货地址
    private String consigneePhone; //收货人电话
    private String showShippingType;


    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneeAddress() {
        return consigneeAddress;
    }

    public void setConsigneeAddress(String consigneeAddress) {
        this.consigneeAddress = consigneeAddress;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderPhone() {
        return orderPhone;
    }

    public void setOrderPhone(String orderPhone) {
        this.orderPhone = orderPhone;
    }

    public String getShowShippingType() {
        if (this.status == OrderInfoConstant.WAITPAY) {
            return "待付款";
        } else if (this.status == OrderInfoConstant.CANCEL) {
            return "已取消";
        }else if(this.status==OrderInfoConstant.OVERDUE){
            return "已过期";
        } else if(this.status==OrderInfoConstant.CHECK){
            return "审核中";
        } else if (this.status==OrderInfoConstant.WAITDELIVER){
            return "已支付";
        } else if (this.status==OrderInfoConstant.COMPLETE){
            return "交易完成";
        }

        return "";
    }

    public void setShowShippingType(String showShippingType) {
        this.showShippingType = showShippingType;
    }

    public String getGoodsSize() {
        return goodsSize;
    }

    public void setGoodsSize(String goodsSize) {
        this.goodsSize = goodsSize;
    }

    public long getTagsId() {
        return tagsId;
    }

    public void setTagsId(long tagsId) {
        this.tagsId = tagsId;
    }

    public String getGoodImage() {
        return goodImage;
    }

    public void setGoodImage(String goodImage) {
        this.goodImage = goodImage;
    }

    public int getShippingType() {
        return shippingType;
    }

    public void setShippingType(int shippingType) {
        this.shippingType = shippingType;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public Date getShippingTime() {
        return shippingTime;
    }

    public void setShippingTime(Date shippingTime) {
        this.shippingTime = shippingTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public long getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(long appUserId) {
        this.appUserId = appUserId;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }



    public int getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(int goodsCount) {
        this.goodsCount = goodsCount;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Double getGoodsTotalPrice() {
        return goodsTotalPrice;
    }

    public void setGoodsTotalPrice(Double goodsTotalPrice) {
        this.goodsTotalPrice = goodsTotalPrice;
    }


    public int getAuthorization() {
        return authorization;
    }

    public void setAuthorization(int authorization) {
        this.authorization = authorization;
    }

    public long getConsigneeId() {
        return consigneeId;
    }

    public void setConsigneeId(long consigneeId) {
        this.consigneeId = consigneeId;
    }

    public String getConsigneeTime() {
        return consigneeTime;
    }

    public void setConsigneeTime(String consigneeTime) {
        this.consigneeTime = consigneeTime;
    }

    public long getCouponId() {
        return couponId;
    }

    public void setCouponId(long couponId) {
        this.couponId = couponId;
    }

    public String getOtherReq() {
        return otherReq;
    }

    public void setOtherReq(String otherReq) {
        this.otherReq = otherReq;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }



    public Double getShippingPrice() {
        return shippingPrice;
    }

    public void setShippingPrice(Double shippingPrice) {
        this.shippingPrice = shippingPrice;
    }

    public Double getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Double getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(Double payPrice) {
        this.payPrice = payPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }



    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
